<template>
  <!-- 封装了一个公有的导航栏地址，props需要 title 和 path，想要全局能引，导到main.js中去 -->
  <van-nav-bar @click-left="$router.push(path)" class="hmNavBar">
    <template #left>
      <i class="iconfont f44">&#xe637;</i>
    </template>
    <template #title>
      <i class="title">{{ title }}</i>
    </template>
  </van-nav-bar>
</template>

<script>
export default {
  name: 'hmNavBar',
  props: ['title', 'path']
}
</script>

<style lang="less" scoped>
.hmNavBar {
  .title {
    font-size: 18px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #222222;
    line-height: 25px;
    letter-spacing: 0px;
    font-style: normal;
  }
}
</style>
